import request from '@/utils/request'

// 查询mqtt操作日志列表
export function listMqttlog(query) {
  return request({
    url: '/system/mqttlog/list',
    method: 'get',
    params: query
  })
}

// 查询mqtt操作日志详细
export function getMqttlog(id) {
  return request({
    url: '/system/mqttlog/' + id,
    method: 'get'
  })
}

// 新增mqtt操作日志
export function addMqttlog(data) {
  return request({
    url: '/system/mqttlog',
    method: 'post',
    data: data
  })
}

// 修改mqtt操作日志
export function updateMqttlog(data) {
  return request({
    url: '/system/mqttlog',
    method: 'put',
    data: data
  })
}

// 删除mqtt操作日志
export function delMqttlog(id) {
  return request({
    url: '/system/mqttlog/' + id,
    method: 'delete'
  })
}
